package com.devplatform.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.devplatform.pojo.validateInt.DeleteGroup;
import com.devplatform.pojo.validateInt.UpdateGroup;
import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 广告主表
 *
 * @TableName advertisers
 */
@TableName(value = "advertisers")
@Data
public class Advertisers {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    @NotNull(message = "广告商ID不能为空", groups = {DeleteGroup.class, UpdateGroup.class})
    private Integer id;

    /**
     * 广告主名称
     */
    @NotBlank(message = "所属公司不能为空")
    private String name;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空")
    private String contactPerson;

    /**
     * 联系电话
     */
    @NotBlank(message = "练习电话不能为空")
    private String contactPhone;

    /**
     * 联系邮箱
     */
    @NotBlank(message = "联系邮箱不能为空")
    private String contactEmail;

    /**
     * 账户余额
     */
    @DecimalMin(value = "0.00", message = "余额不能为负数")
    @DecimalMax(value = "100000000", message = "余额不能超过100,000,000")
    private BigDecimal balance;

    /**
     * 状态：1-正常，0-禁用,3-已删除
     */
    private Integer status;

    /**
     *
     */
    private LocalDateTime createdAt;

    /**
     *
     */
    private LocalDateTime updatedAt;

}